﻿@page "/datagrid-selfref-hierarchy"

<RadzenText TextStyle="TextStyle.H2" TagName="TagName.H1" class="rz-pt-8">
    DataGrid <strong>self-Reference</strong> hierarchy
</RadzenText>
<RadzenText TextStyle="TextStyle.Subtitle1" TagName="TagName.P" class="rz-pb-4">
    Display hierarchical data where items reference their parent within the same collection.
</RadzenText>

<RadzenText TextStyle="TextStyle.Subtitle2" TagName="TagName.P" class="rz-pb-4">
    In this demo the <strong>Employees</strong> hierarchy shows managers and their reports using <code>LoadChildData</code> event, starting with top-level employees (<code>ReportsTo == null</code>), with the first employee pre-expanded and filters automatically cleared on row collapse.
</RadzenText>

<RadzenExample ComponentName="DataGrid" Example="DataGridSelfReferenceHierarchy">
    <DataGridSelfReferenceHierarchy />
</RadzenExample>
